<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:x="https://www.texmacs.org/2002/extensions" xmlns:m="http://www.w3.org/1998/Math/MathML">
  <head>
    <title>TeXmacs notes</title>
    <meta content="TeXmacs 1.99.16" name="generator"></meta>
    <link href="../resources/notes-base.css" type="text/css" rel="stylesheet"></link>
    <link href="../resources/blog-icon.png" rel="icon"></link>
    <script src="../resources/highlight.pack.js" language="javascript" defer></script>
    <script src="../resources/notes-base.js" language="javascript" defer></script>
    <script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js" language="javascript"></script>
  </head>
  <body>
    <div class="notes-header">
      <p>
        <img class="image" src="../resources/texmacs-blog-transparent.png" width="28.116784"></img><span style="margin-left: 2pt"></span><a href="./main.html">[main]</a><em
        class="notes-header-name">Notes on TeXmacs</em>
      </p>
    </div>
    <p>
      <a id="auto-1"></a>
    </p>
    <h1>Compile TeXmacs on the Raspberry Pi<span style="margin-left: 1em"></span></h1>
    <div class="notes-abstract">
      Unfortunately, there is no prepackaged TeXmacs for RaspberryPi OS,
      because of its ARM chipset. Likewise there are no precompiled binaries,
      but it is not hard to built it yourself.
    </div>
    <p>
      The following is a step by step guide to install the required tools to
      compile TeXmacs yourself from source and install it. Theis guide was
      written for the latest version of Raspberry Pi OS from December 2020. It
      will work on version 3, 4 and 400 of the RaspberryPi.
    </p>
    <p>
      Start by opening a terminal and installing the required components to
      compile by entering:
    </p>
    <div class="tmweb-code">
      <pre class="verbatim" xml:space="preserve">
sudo apt install build-essential libfreetype-dev libltdl-dev \
     libgmp-dev qt4-default qt4-config</pre>
    </div>
    <p>
      Now, that everything is ready to download and build we start by making a
      building directory:
    </p>
    <div class="tmweb-code">
      <pre class="verbatim" xml:space="preserve">
mkdir texmacs-builddir</pre>
    </div>
    <p>
      Change the working directory to it:
    </p>
    <div class="tmweb-code">
      <pre class="verbatim" xml:space="preserve">
cd texmacs-builddir</pre>
    </div>
    <p>
      TeXmacs depends on a Guile, so we need to build guile first. For this
      enter the following commands. Each step might take some time depending
      on your internet connection and the exact model of the Raspberry Pi.
    </p>
    <div class="tmweb-code">
      <pre class="verbatim" xml:space="preserve">
<font color="blue"><code></code></font>wget https://ftp.gnu.org/gnu/guile/guile-1.8.8.tar.gz
<code>tar xzf guile-1.8.8.tar.gz</code>
cd guile-1.8.8
./configure --disable-error-on-warning
make -j 4
sudo make install</pre>
    </div>
    <p>
      The last step will ask for your password to install guile to your
      system.
    </p>
    <p>
      Now, we can go on to get and compile TeXmacs
    </p>
    <div class="tmweb-code">
      <pre class="verbatim" xml:space="preserve">
<font color="blue"><code></code></font>cd ..
wget www.texmacs.org/Download/ftp/tmftp/source/TeXmacs-1.99.16-src.tar.gz
tar xzf TeXmacs-1.99.16-src.tar.gz
cd TeXmacs-1.99.16-src/
./configure --enable-qtpipes
make -j 4
sudo make install</pre>
    </div>
    <p>
      Again the last step will ask for your password. 
    </p>
    <p>
      Now, you should be able to run TeXmacs either from the terminal by
      entering
    </p>
    <div class="tmweb-code">
      <pre class="verbatim" xml:space="preserve">
texmacs</pre>
    </div>
    <p>
      or from the normal menu.
    </p>
    <p>
      
    </p>
  </body>
</html>